#include <iostream>
#include <string>
using namespace std;

struct Student{
    int id;
    string name;
    int score;
    // C++的结构体中可以直接定义函数
    void show(){
        cout << id << " " << name << " " << score << endl;
    }
};

int main(int argc, const char *argv[]){
    // 定义结构体变量时 不再需要 struct关键字了
    Student s1;
    s1.id = 1001;
    s1.name = "zhangsan";
    s1.score = 100;
    s1.show(); // 1001 zhangsan 100
    return 0;
}